package com.lk.lkappearance.controller;

import com.lk.lkappearance.common.AbstractBaseController;
import com.lk.lkappearance.model.LoginLog;
import com.lk.lkappearance.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/loginLog")
public class LoginLogController extends AbstractBaseController {

    @Autowired
    private LoginLogService loginLogService;

    /**
     * @param loginLogg
     * @return
     */
    @RequestMapping(value = "/getList", method = RequestMethod.GET)
    public Map<String,Object> getList(@RequestBody LoginLog loginLogg){
        log.info("查看用户登录日志列表");
        return loginLogService.getList(loginLogg);
    }




}
